import {setGameCanvas,startGame,initGame,pauseGame,context} from "./js/game.js"
setGameCanvas(document.querySelector("#aircraftBattleGame"))
let initBtn = document.querySelector("#initBtn")
let startBtn = document.querySelector("#startBtn")
let pauseBtn = document.querySelector("#pauseBtn")
let score = document.querySelector("#score")
initBtn.addEventListener("click",()=>{initGame()})
startBtn.addEventListener("click",()=>{startGame()})
pauseBtn.addEventListener("click",()=>{pauseGame()})
setInterval(()=>{
    score.innerText = context.score
},16)